steps to calculate the multiplicative inverse